#include "fan.h"
#include <QDebug>

Fan::Fan() {}

void Fan::setHigh()
{
    speed = HIGH;
    qDebug() << "fan is on high speed";
}

void Fan::setMedium()
{
    speed = MEDIUM;
    qDebug() << "fan is on medium speed";
}

void Fan::setLow()
{
    speed = LOW;
    qDebug() << "fan is on low speed";
}

void Fan::setOff()
{
    speed = Off;
    qDebug() << "fan is off";
}

int Fan::getSpeed()
{
    return speed;
}
